(function(window){

	if(!window.console) window.console = {log:function(p){}, info:function(){}, warn:function(){}};
		
	var LocationInfo = new function(){

		LocationInfo.prototype.date = new Date();
		LocationInfo.prototype.time = new Date().getTime();
		LocationInfo.prototype.latitude  = -2.583;
		LocationInfo.prototype.longitude = 51.467;

		function LocationInfo(d, lat, lon){
			var date = new Date();
			if(d)
			{
				date = d;
				time = d.getTime();
			}
			if(lat) latitude = lat;
			if(lon) longitude = lon;
		}
		return LocationInfo;
	}
	if(!window.LocationInfo) window.LocationInfo = LocationInfo;
}(window));